package com.ceo.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ceo.auth.dto.AucLoginDTO;
import com.ceo.auth.entity.AucUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ceo.common.query.QueryParameter;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author ceo
 * @since 2023-06-02
 */
public interface AucUserService extends IService<AucUser> {

    String login(String userAgent, AucLoginDTO aucLoginDTO);

    /**
     * 非注销用户
     * @param userId
     * @return
     */
    Long countNotDelUser(String userId);

    /**
     * 新增用户
     * @param aucUser
     * @return
     */
    boolean addUser( AucUser aucUser);

    Page<AucUser> queryUserPageWithSql(QueryParameter<AucUser> qp);
}
